<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script type="text/javascript" src="js/jquery-3.0.0.js" ></script>
	<style>
		div{background: paleturquoise;width: 150px;height: 100px;}
		.a{background: purple;}
		.b{border: 3px solid palevioletred}
		.c{font-size: 20px;}
		</style>	
	</head>
	<body>
	<div class="a b c"><a href="#">链接</a></div>
	<div><a href="#">链接2</a></div>
		<script>
		$("div").addClass('a b c')//添加类
		$("div").removeClass("b")//删除类
		$("div").toggleClass("b")//添加/删除类
		</script>
		
	</body>
</html>
